<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "diary".
 *
 * @property int $id
 * @property int $time
 * @property string $whether
 * @property string $detail
 * @property string $imageList
 */
class diary extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'diary';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['time', 'whether', 'detail'], 'required'],
            [['time'], 'integer'],
            [['detail'], 'string'],
            [['whether'], 'string', 'max' => 128],
            [['imageList'], 'string', 'max' => 64],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'time' => 'Time',
            'whether' => 'Whether',
            'detail' => 'Detail',
            'imageList' => 'Image List',
        ];
    }
}
